package com.zhichat.infrastructure.config;

import lombok.Getter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

import java.io.Serializable;

@Getter
@Configuration
public class ZhiChatConfig implements Serializable {

    @Value("${spring.application.name}")
    private String current_server;

    @Value("${app.exclude.uri}")
    private String exclude;

    @Value("${server.port:1001}")
    private Integer serverPort;

    @Value("${app.id}")
    private Integer id;

    @Value("${app.data-center}")
    private Integer dataCenter;

    @Value("${app.ws.port:1002}")
    private Integer wsPort;

    @Value("${app.ws.context-path}")
    private String wsContextPath;

    @Value("${app.jwt.secret}")
    private String jwtSecret;

    @Value("${app.media-file.callback-url}")
    private String mediaFileCallbackUrl;

    @Value("${log.level:info}")
    private String logLevel;
}
